<md-content layout-fill>
    <div layout="column" layout-align="center" style="padding-left: 8%;padding-right: 8%;">
        <p style="font-size:x-large;padding-top: 30px;" align="center">— 发 现 —</p>
        <!--
        <md-input-container >
            <lable> 问题类型</lable>
            <md-select ng-model="selectedType" ng-change="changeQuestion(selectedType)">
                <md-option ng-repeat="x in types" ng-value="x" ng-click="test(x)">{{x}}</md-option>
            </md-select>
        </md-input-container>
        -->
        <br>
        <md-card ng-click="getEssayById(essay._id)" layout="column" layout-margin
                 ng-repeat="essay in allEssay.res" class="md-whiteframe-3dp">
            <md-card-title>
                <md-card-title-text>
                    <div layout="row">
                        <span class="md-headline">{{essay.question.title}}</span>
                        <div flex></div>
                        <div layout-align="end end">
                            <span class="md-button md-fab md-mini" style="background-color: #5385c1">{{essay.userId.substring(0,1)}}</span>
                            <span>@{{essay.userId}}</span>
                        </div>
                    </div>
                    <div flex style="height: 10px;"></div>
                    <div layout="row">
                        <span class="md-subhead">{{essay.question.sum}}</span>
                        <div flex></div>
                        <div layout-align="end end" ng-if="isAdmin">
                            <sub>
                                <md-button ng-click="deleteEssayById(essay._id)">删除</md-button>
                            </sub>
                        </div>
                    </div>
                </md-card-title-text>
            </md-card-title>
        </md-card>
        <div style="height: 300px"></div>
    </div>

</md-content>
